class CreateOrders < ActiveRecord::Migration
  def change
    create_table :orders do |t|
      t.references :admin_user
      t.string :order_no
      t.string :good_name
      t.integer :good_amount
      t.decimal :good_price
      t.string :pay_type
      t.decimal :total
      t.decimal :pay_amount
      t.string :code_url
      t.integer :status, default: 0
      t.timestamps null: false
    end
  end
end
